<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>lesson6_时间和日期</title>
		<link rel="stylesheet" href="./layui/css/layui.css">
	</head>
	<body>
		<div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
		  <input type="text" class="layui-input" id="test1">
		</div>
		
		<div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
		<input type="text" class="layui-input" id="test2">
		</div>
		
		<!-- 引入js-->
		<script src="./layui/layui.js"></script>
		<!-- 引入表单模块 -->
		<script>
			layui.use(['layer','form','laydate'],function(){
				var layer = layui.layer;
				var form = layui.form;
				var laydate = layui.laydate;
				
				laydate.render({
					elem:"#test1",
					type:'datetime'
					});
				
				laydate.render({
					elem:"#test2",
					type:'date'
					});
			});
		</script>
	</body>
</html>